package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import cisdi.mes.utils.base.CustomDateSerializer;
import java.util.Date;

/**
 * The persistent class for the SM_RM_MEASURE_DOC_LOG database table.
 * 
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true, dynamicUpdate=true)
@Table(name="SM_RM_MEASURE_DOC_LOG")
public class SmRmMeasureDocLog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SM_RM_MEASURE_DOC_LOG_ID_GENERATOR", sequenceName="SEQ_SM",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SM_RM_MEASURE_DOC_LOG_ID_GENERATOR")
	private long id;

	private String event;

	@Column(name="FROM_STORAGE_ID")
	private String fromStorageId;

	@Column(name="ID_ADDR")
	private String idAddr;

	@Column(name="MATERIAL_ID")
	private String materialId;

	@Column(name="MEASURE_ID")
	private String measureId;

	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="TIME_STAMP")
	private Date timeStamp;

	@Column(name="TO_STORAGE_ID")
	private String toStorageId;

	private Double  weight;

    public SmRmMeasureDocLog() {
    }

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getEvent() {
		return this.event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getFromStorageId() {
		return this.fromStorageId;
	}

	public void setFromStorageId(String fromStorageId) {
		this.fromStorageId = fromStorageId;
	}

	public String getIdAddr() {
		return this.idAddr;
	}

	public void setIdAddr(String idAddr) {
		this.idAddr = idAddr;
	}

	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public String getMeasureId() {
		return this.measureId;
	}

	public void setMeasureId(String measureId) {
		this.measureId = measureId;
	}

	public Date getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

	public String getToStorageId() {
		return this.toStorageId;
	}

	public void setToStorageId(String toStorageId) {
		this.toStorageId = toStorageId;
	}

	public Double getWeight() {
		return this.weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

}